def odd():
	yield (1)
	print("step 1")
	yield 2
	print(3)
	yield(3)
	print(5)

#o = odd()
#next(o)
#next(o)
#next(o)
#
#
def fib(max):
	n, a, b = 0, 0, 1
	while n < max:
		yield b
		a, b = b , a + b
		n = n + 1
	return 'done'

print(fib(5));
for d in fib(5):
	print(d)